import request from "@/utils/request";

// 查询用户列表
export function customerList(query) {
  return request({
    url: "/user/listPage",
    method: "get",
    params: query
  });
}

// 用户启用禁用
export function changeUser(data) {
  return request({
    url: "/user/disableUser",
    method: "post",
    data,
  });
}

// 用户余额冻结解锁操作
export function changeUserCount(data) {
  return request({
    url: "/user/upLockBalance",
    method: "post",
    data,
  });
}

// 用户余额操作
export function changeBalance(data) {
  return request({
    url: "/user/addBalance",
    method: "post",
    data,
  });
}

// 等级列表
export function userLevelList(data) {
  return request({
    url: "/advertLevel/page",
    method: "get",
    data,
  });
}

// 修改等级列表
export function changeUserLevelInfo(data) {
  return request({
    url: "/advertLevel/modify",
    method: "put",
    data,
  });
}

// 用户冻结资金
export function userFreezeData(query) {
  return request({
    url: "/freeze/page",
    method: "get",
    params: query
  });
}

// 用户余额充值
export function userBalanceData(query) {
  return request({
    url: "/recharge/listPage",
    method: "get",
    params: query
  });
}

// 用户余额充值审核
export function balanceAudit(data) {
  return request({
    url: "/recharge/audit",
    method: "post",
    data
  });
}

// 用户余额流水
export function userWalletData(query) {
  return request({
    url: "/balance/page",
    method: "get",
    params: query
  });
}
// 修改用户广告等级
export function changeUserLevel(data) {
  return request({
    url: "/user/upAdvertLevel",
    method: "post",
    data
  });
}
// 优惠券列表
export function couponListData(query) {
  return request({
    url: "/coupon/list",
    method: "get",
    params: query
  });
}

